﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>HOU-Công tác sinh viên</title>
        <LINK REL="SHORTCUT ICON" href="<?php echo base_url(); ?>public/img/icon-logo.jpg"/>
        <link href="<?php echo base_url(); ?>public/css/Style-19-3.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/js/themes/base/jquery.ui.all.css"/>
        <script src="<?php echo base_url(); ?>public/js/jquery-1.10.2.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.core.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.widget.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.mouse.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.button.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.position.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.menu.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.accordion.js"></script>
        <script src="<?php echo base_url(); ?>public/js/ui/jquery.ui.selectable.js"></script>
    </head>
    <body class="body-contaiter">
        <?php
        $user = $this->session->userdata['user'];
        ?>
        <div class="page-contaiter">
            <div class="top-contaiter">
                <?php
                include 'sv-banner.php';
                ?>
            </div>
            <div class="center-contaiter">

                <div id="content-sinhvien">
                    <div id="homthu">
                        <fieldset style="width: 600px">
                            <form action="<?php echo base_url(); ?>sinhvien/xuly_homthu" method="post">

                                <table>
                                    <caption>
                                        <h2>Hòm Thư Góp Ý</h2>
                                    </caption>
                                    <tr>
                                        <td>Họ tên:</td>
                                        <td>  <input type="text" required name="HoTen"/></td>
                                    </tr>
                                    <tr>
                                        <td>Email:</td>
                                        <td>  <input type='email' required name="Email"/></td>
                                    </tr>
                                    <tr>
                                        <td> Tiêu đề:</td>
                                        <td>   <input type="text" required name="TieuDe"/></td>
                                    </tr>
                                    <tr>
                                        <td> Nôi Dung: </td>                                       
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <textarea  style="width: 450px;height: 200px" name="NoiDung" required ></textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td> 
                                            <button type="submit" name="sub" value="0">Hủy</button>

                                            <button type="submit" name="sub" value="1">Gủi</button>

                                        </td>
                                    </tr>

                                </table>

                            </form>
                        </fieldset>













                    </div>
                    <div id='traloi'>
                        <fieldset style="width: 460px">
                        <table>
                            <caption><h2>Trả lời câu hỏi</h2></caption>
                            <tr>
                                <th>Câu hỏi</th>
                                <th>Trả lời</th>
                            </tr>
                            <?php
                            {
                                foreach ($dshomthu as $key => $value) {
                                    echo '<tr>';
                                    echo '<td>' . $value->NoiDung . '</td>';
                                    echo '<td>' . $value->TraLoi . '</td>';
                                    echo '</tr>';
                                }
                            }
                            ?>
                        </table>
                        </fieldset>
                    </div>
                </div>

            </div>
        </div>
    </body>
</html>
